﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Muccu
{
    [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
    public class CacheAttribute : Attribute
    {
        public CacheAttribute(int duration)
        {
            this.Duration = duration;
        }

        /// <summary>
        /// Number of seconds to cache on client
        /// </summary>
        public int Duration { get;private set; }
    }
}
